package com.nclg.exam.service;

import com.github.pagehelper.PageInfo;
import com.nclg.exam.dto.CreaterDto;
import com.nclg.exam.dto.ExamQuestionDto;
import com.nclg.exam.dto.QuestionDto;
import com.nclg.exam.dto.QuestionListDto;
import com.nclg.exam.entity.TQuestion;

import java.util.List;

public interface QuestionService {
    List<CreaterDto> selectCreaters();

    PageInfo<QuestionListDto> selectByPage(QuestionDto dto);

    boolean insert(TQuestion question);

    boolean updateStatus(Long qId, String qstatus);

    TQuestion selectById(Long qId);

    boolean update(TQuestion question);

    List<ExamQuestionDto> selectQuestionByPid(Long pid);
}
